package xa.woniu.entity;

import java.util.ArrayList;
import java.util.List;

public class RecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public RecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRidIsNull() {
            addCriterion("rid is null");
            return (Criteria) this;
        }

        public Criteria andRidIsNotNull() {
            addCriterion("rid is not null");
            return (Criteria) this;
        }

        public Criteria andRidEqualTo(Integer value) {
            addCriterion("rid =", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotEqualTo(Integer value) {
            addCriterion("rid <>", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThan(Integer value) {
            addCriterion("rid >", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThanOrEqualTo(Integer value) {
            addCriterion("rid >=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThan(Integer value) {
            addCriterion("rid <", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThanOrEqualTo(Integer value) {
            addCriterion("rid <=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidIn(List<Integer> values) {
            addCriterion("rid in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotIn(List<Integer> values) {
            addCriterion("rid not in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidBetween(Integer value1, Integer value2) {
            addCriterion("rid between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotBetween(Integer value1, Integer value2) {
            addCriterion("rid not between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andRnumIsNull() {
            addCriterion("rnum is null");
            return (Criteria) this;
        }

        public Criteria andRnumIsNotNull() {
            addCriterion("rnum is not null");
            return (Criteria) this;
        }

        public Criteria andRnumEqualTo(String value) {
            addCriterion("rnum =", value, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumNotEqualTo(String value) {
            addCriterion("rnum <>", value, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumGreaterThan(String value) {
            addCriterion("rnum >", value, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumGreaterThanOrEqualTo(String value) {
            addCriterion("rnum >=", value, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumLessThan(String value) {
            addCriterion("rnum <", value, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumLessThanOrEqualTo(String value) {
            addCriterion("rnum <=", value, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumLike(String value) {
            addCriterion("rnum like", value, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumNotLike(String value) {
            addCriterion("rnum not like", value, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumIn(List<String> values) {
            addCriterion("rnum in", values, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumNotIn(List<String> values) {
            addCriterion("rnum not in", values, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumBetween(String value1, String value2) {
            addCriterion("rnum between", value1, value2, "rnum");
            return (Criteria) this;
        }

        public Criteria andRnumNotBetween(String value1, String value2) {
            addCriterion("rnum not between", value1, value2, "rnum");
            return (Criteria) this;
        }

        public Criteria andRtagIsNull() {
            addCriterion("rtag is null");
            return (Criteria) this;
        }

        public Criteria andRtagIsNotNull() {
            addCriterion("rtag is not null");
            return (Criteria) this;
        }

        public Criteria andRtagEqualTo(Integer value) {
            addCriterion("rtag =", value, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagNotEqualTo(Integer value) {
            addCriterion("rtag <>", value, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagGreaterThan(Integer value) {
            addCriterion("rtag >", value, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagGreaterThanOrEqualTo(Integer value) {
            addCriterion("rtag >=", value, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagLessThan(Integer value) {
            addCriterion("rtag <", value, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagLessThanOrEqualTo(Integer value) {
            addCriterion("rtag <=", value, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagIn(List<Integer> values) {
            addCriterion("rtag in", values, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagNotIn(List<Integer> values) {
            addCriterion("rtag not in", values, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagBetween(Integer value1, Integer value2) {
            addCriterion("rtag between", value1, value2, "rtag");
            return (Criteria) this;
        }

        public Criteria andRtagNotBetween(Integer value1, Integer value2) {
            addCriterion("rtag not between", value1, value2, "rtag");
            return (Criteria) this;
        }

        public Criteria andRdate1IsNull() {
            addCriterion("rdate1 is null");
            return (Criteria) this;
        }

        public Criteria andRdate1IsNotNull() {
            addCriterion("rdate1 is not null");
            return (Criteria) this;
        }

        public Criteria andRdate1EqualTo(String value) {
            addCriterion("rdate1 =", value, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1NotEqualTo(String value) {
            addCriterion("rdate1 <>", value, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1GreaterThan(String value) {
            addCriterion("rdate1 >", value, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1GreaterThanOrEqualTo(String value) {
            addCriterion("rdate1 >=", value, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1LessThan(String value) {
            addCriterion("rdate1 <", value, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1LessThanOrEqualTo(String value) {
            addCriterion("rdate1 <=", value, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1Like(String value) {
            addCriterion("rdate1 like", value, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1NotLike(String value) {
            addCriterion("rdate1 not like", value, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1In(List<String> values) {
            addCriterion("rdate1 in", values, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1NotIn(List<String> values) {
            addCriterion("rdate1 not in", values, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1Between(String value1, String value2) {
            addCriterion("rdate1 between", value1, value2, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate1NotBetween(String value1, String value2) {
            addCriterion("rdate1 not between", value1, value2, "rdate1");
            return (Criteria) this;
        }

        public Criteria andRdate2IsNull() {
            addCriterion("rdate2 is null");
            return (Criteria) this;
        }

        public Criteria andRdate2IsNotNull() {
            addCriterion("rdate2 is not null");
            return (Criteria) this;
        }

        public Criteria andRdate2EqualTo(String value) {
            addCriterion("rdate2 =", value, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2NotEqualTo(String value) {
            addCriterion("rdate2 <>", value, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2GreaterThan(String value) {
            addCriterion("rdate2 >", value, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2GreaterThanOrEqualTo(String value) {
            addCriterion("rdate2 >=", value, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2LessThan(String value) {
            addCriterion("rdate2 <", value, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2LessThanOrEqualTo(String value) {
            addCriterion("rdate2 <=", value, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2Like(String value) {
            addCriterion("rdate2 like", value, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2NotLike(String value) {
            addCriterion("rdate2 not like", value, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2In(List<String> values) {
            addCriterion("rdate2 in", values, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2NotIn(List<String> values) {
            addCriterion("rdate2 not in", values, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2Between(String value1, String value2) {
            addCriterion("rdate2 between", value1, value2, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRdate2NotBetween(String value1, String value2) {
            addCriterion("rdate2 not between", value1, value2, "rdate2");
            return (Criteria) this;
        }

        public Criteria andRunameIsNull() {
            addCriterion("runame is null");
            return (Criteria) this;
        }

        public Criteria andRunameIsNotNull() {
            addCriterion("runame is not null");
            return (Criteria) this;
        }

        public Criteria andRunameEqualTo(String value) {
            addCriterion("runame =", value, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameNotEqualTo(String value) {
            addCriterion("runame <>", value, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameGreaterThan(String value) {
            addCriterion("runame >", value, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameGreaterThanOrEqualTo(String value) {
            addCriterion("runame >=", value, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameLessThan(String value) {
            addCriterion("runame <", value, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameLessThanOrEqualTo(String value) {
            addCriterion("runame <=", value, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameLike(String value) {
            addCriterion("runame like", value, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameNotLike(String value) {
            addCriterion("runame not like", value, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameIn(List<String> values) {
            addCriterion("runame in", values, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameNotIn(List<String> values) {
            addCriterion("runame not in", values, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameBetween(String value1, String value2) {
            addCriterion("runame between", value1, value2, "runame");
            return (Criteria) this;
        }

        public Criteria andRunameNotBetween(String value1, String value2) {
            addCriterion("runame not between", value1, value2, "runame");
            return (Criteria) this;
        }

        public Criteria andRdeidIsNull() {
            addCriterion("rdeid is null");
            return (Criteria) this;
        }

        public Criteria andRdeidIsNotNull() {
            addCriterion("rdeid is not null");
            return (Criteria) this;
        }

        public Criteria andRdeidEqualTo(Integer value) {
            addCriterion("rdeid =", value, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidNotEqualTo(Integer value) {
            addCriterion("rdeid <>", value, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidGreaterThan(Integer value) {
            addCriterion("rdeid >", value, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("rdeid >=", value, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidLessThan(Integer value) {
            addCriterion("rdeid <", value, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidLessThanOrEqualTo(Integer value) {
            addCriterion("rdeid <=", value, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidIn(List<Integer> values) {
            addCriterion("rdeid in", values, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidNotIn(List<Integer> values) {
            addCriterion("rdeid not in", values, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidBetween(Integer value1, Integer value2) {
            addCriterion("rdeid between", value1, value2, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRdeidNotBetween(Integer value1, Integer value2) {
            addCriterion("rdeid not between", value1, value2, "rdeid");
            return (Criteria) this;
        }

        public Criteria andRcidIsNull() {
            addCriterion("rcid is null");
            return (Criteria) this;
        }

        public Criteria andRcidIsNotNull() {
            addCriterion("rcid is not null");
            return (Criteria) this;
        }

        public Criteria andRcidEqualTo(Integer value) {
            addCriterion("rcid =", value, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidNotEqualTo(Integer value) {
            addCriterion("rcid <>", value, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidGreaterThan(Integer value) {
            addCriterion("rcid >", value, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidGreaterThanOrEqualTo(Integer value) {
            addCriterion("rcid >=", value, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidLessThan(Integer value) {
            addCriterion("rcid <", value, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidLessThanOrEqualTo(Integer value) {
            addCriterion("rcid <=", value, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidIn(List<Integer> values) {
            addCriterion("rcid in", values, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidNotIn(List<Integer> values) {
            addCriterion("rcid not in", values, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidBetween(Integer value1, Integer value2) {
            addCriterion("rcid between", value1, value2, "rcid");
            return (Criteria) this;
        }

        public Criteria andRcidNotBetween(Integer value1, Integer value2) {
            addCriterion("rcid not between", value1, value2, "rcid");
            return (Criteria) this;
        }

        public Criteria andRdidIsNull() {
            addCriterion("rdid is null");
            return (Criteria) this;
        }

        public Criteria andRdidIsNotNull() {
            addCriterion("rdid is not null");
            return (Criteria) this;
        }

        public Criteria andRdidEqualTo(Integer value) {
            addCriterion("rdid =", value, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidNotEqualTo(Integer value) {
            addCriterion("rdid <>", value, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidGreaterThan(Integer value) {
            addCriterion("rdid >", value, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidGreaterThanOrEqualTo(Integer value) {
            addCriterion("rdid >=", value, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidLessThan(Integer value) {
            addCriterion("rdid <", value, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidLessThanOrEqualTo(Integer value) {
            addCriterion("rdid <=", value, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidIn(List<Integer> values) {
            addCriterion("rdid in", values, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidNotIn(List<Integer> values) {
            addCriterion("rdid not in", values, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidBetween(Integer value1, Integer value2) {
            addCriterion("rdid between", value1, value2, "rdid");
            return (Criteria) this;
        }

        public Criteria andRdidNotBetween(Integer value1, Integer value2) {
            addCriterion("rdid not between", value1, value2, "rdid");
            return (Criteria) this;
        }

        public Criteria andRamountIsNull() {
            addCriterion("ramount is null");
            return (Criteria) this;
        }

        public Criteria andRamountIsNotNull() {
            addCriterion("ramount is not null");
            return (Criteria) this;
        }

        public Criteria andRamountEqualTo(Integer value) {
            addCriterion("ramount =", value, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountNotEqualTo(Integer value) {
            addCriterion("ramount <>", value, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountGreaterThan(Integer value) {
            addCriterion("ramount >", value, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountGreaterThanOrEqualTo(Integer value) {
            addCriterion("ramount >=", value, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountLessThan(Integer value) {
            addCriterion("ramount <", value, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountLessThanOrEqualTo(Integer value) {
            addCriterion("ramount <=", value, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountIn(List<Integer> values) {
            addCriterion("ramount in", values, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountNotIn(List<Integer> values) {
            addCriterion("ramount not in", values, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountBetween(Integer value1, Integer value2) {
            addCriterion("ramount between", value1, value2, "ramount");
            return (Criteria) this;
        }

        public Criteria andRamountNotBetween(Integer value1, Integer value2) {
            addCriterion("ramount not between", value1, value2, "ramount");
            return (Criteria) this;
        }

        public Criteria andRnidIsNull() {
            addCriterion("rnid is null");
            return (Criteria) this;
        }

        public Criteria andRnidIsNotNull() {
            addCriterion("rnid is not null");
            return (Criteria) this;
        }

        public Criteria andRnidEqualTo(Integer value) {
            addCriterion("rnid =", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidNotEqualTo(Integer value) {
            addCriterion("rnid <>", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidGreaterThan(Integer value) {
            addCriterion("rnid >", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidGreaterThanOrEqualTo(Integer value) {
            addCriterion("rnid >=", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidLessThan(Integer value) {
            addCriterion("rnid <", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidLessThanOrEqualTo(Integer value) {
            addCriterion("rnid <=", value, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidIn(List<Integer> values) {
            addCriterion("rnid in", values, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidNotIn(List<Integer> values) {
            addCriterion("rnid not in", values, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidBetween(Integer value1, Integer value2) {
            addCriterion("rnid between", value1, value2, "rnid");
            return (Criteria) this;
        }

        public Criteria andRnidNotBetween(Integer value1, Integer value2) {
            addCriterion("rnid not between", value1, value2, "rnid");
            return (Criteria) this;
        }

        public Criteria andRdate3IsNull() {
            addCriterion("rdate3 is null");
            return (Criteria) this;
        }

        public Criteria andRdate3IsNotNull() {
            addCriterion("rdate3 is not null");
            return (Criteria) this;
        }

        public Criteria andRdate3EqualTo(String value) {
            addCriterion("rdate3 =", value, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3NotEqualTo(String value) {
            addCriterion("rdate3 <>", value, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3GreaterThan(String value) {
            addCriterion("rdate3 >", value, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3GreaterThanOrEqualTo(String value) {
            addCriterion("rdate3 >=", value, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3LessThan(String value) {
            addCriterion("rdate3 <", value, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3LessThanOrEqualTo(String value) {
            addCriterion("rdate3 <=", value, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3Like(String value) {
            addCriterion("rdate3 like", value, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3NotLike(String value) {
            addCriterion("rdate3 not like", value, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3In(List<String> values) {
            addCriterion("rdate3 in", values, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3NotIn(List<String> values) {
            addCriterion("rdate3 not in", values, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3Between(String value1, String value2) {
            addCriterion("rdate3 between", value1, value2, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRdate3NotBetween(String value1, String value2) {
            addCriterion("rdate3 not between", value1, value2, "rdate3");
            return (Criteria) this;
        }

        public Criteria andRflagIsNull() {
            addCriterion("rflag is null");
            return (Criteria) this;
        }

        public Criteria andRflagIsNotNull() {
            addCriterion("rflag is not null");
            return (Criteria) this;
        }

        public Criteria andRflagEqualTo(Integer value) {
            addCriterion("rflag =", value, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagNotEqualTo(Integer value) {
            addCriterion("rflag <>", value, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagGreaterThan(Integer value) {
            addCriterion("rflag >", value, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagGreaterThanOrEqualTo(Integer value) {
            addCriterion("rflag >=", value, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagLessThan(Integer value) {
            addCriterion("rflag <", value, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagLessThanOrEqualTo(Integer value) {
            addCriterion("rflag <=", value, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagIn(List<Integer> values) {
            addCriterion("rflag in", values, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagNotIn(List<Integer> values) {
            addCriterion("rflag not in", values, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagBetween(Integer value1, Integer value2) {
            addCriterion("rflag between", value1, value2, "rflag");
            return (Criteria) this;
        }

        public Criteria andRflagNotBetween(Integer value1, Integer value2) {
            addCriterion("rflag not between", value1, value2, "rflag");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}